package com.atguigu.config;

import com.atguigu.aopanno.User;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.ComponentScan;
import org.springframework.context.annotation.Configuration;
import org.springframework.context.annotation.EnableAspectJAutoProxy;

@Configuration
@ComponentScan(basePackages = {"com.atguigu"})
@EnableAspectJAutoProxy // 开启aop注解
public class ConfigAop {


    @Bean
    public User user() {
        return new User();
    }

}
